package cn.stylefeng.guns.modular.gridsystem.entity;

import cn.stylefeng.guns.core.pojo.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.util.Date;

/**
 * biz_gateway_channel
 *
 * @author ssy
 * @date 2021/09/14 11:47
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("biz_gateway_channel")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BizGatewayChannel extends BaseEntity {

    /**
     * id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 通道
     */
    @TableField("channel")
    private String channel;
    /**
     * 安装位置
     */
    @TableField("install_location")
    private String installLocation;

    /**
     * 监听设备id(变压器）
     */
    @TableField("device_id")
    private Integer deviceId;

    @TableField("gateway_id")
    private Integer gatewayId;

    @TableField("status")
    private Integer status;

    @TableField("channel_type")
    private Integer channelType;

    /**
     * 创建日期
     */
    @TableField("created_at")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    @TableField("xposion")
    private String xposion;

    @TableField("yposion")
    private String yposion;

    /**
     * 绑定类型：0-正面，1-反而
     */
    private String positionType;

}
